<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<p class="a1">gert</p>
		<p>gwt</p>
		<script src="../jquery-1.12.4.min.js"></script>
		<script>
			var h2=document.createElement('h2');
			var text=document.createTextNode('测试');
			var attr=document.createAttribute('align');
			attr.value='center';
			h2.setAttributeNode(attr);
			h2.appendChild(text);
			document.querySelector('body').appendChild(h2);
			
			$('<p>哈哈</p>').appendTo('body');
			
			$('p.a1').hide();
		</script>
	</body>
</html>
